package org.jackysoft.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.jackysoft.util.MySqlSchema;




@Entity
@org.hibernate.annotations.Entity(
		dynamicInsert=true,
		dynamicUpdate=true
)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table(schema=MySqlSchema.Businessbase)
public class UploadedFileItem extends FileItem {
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8647988881527817461L;
	private String  folder;
	
	
	public UploadedFileItem(String realName) {
		super(realName);
	}

	public UploadedFileItem() {
		super();
	}

	public UploadedFileItem(String id,String realName) {
		this.id = id;
		this.realName = realName;
	}



	/**
	 * @return the folder
	 */
	public String getFolder() {
		return folder;
	}

	/**
	 * @param folder the folder to set
	 */
	public void setFolder(String folder) {
		this.folder = folder;
	}

	
}